package com.atguigu.springcloud;

import com.atguigu.springcloud.dao.PaymentDao;
import com.atguigu.springcloud.entities.Payment;
import jdk.nashorn.internal.ir.annotations.Reference;
import org.junit.jupiter.api.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
public class PaymentMain80 {
    @Reference
    private PaymentDao paymentDao;

    public int creat(Payment payment){
        return paymentDao.create(payment);
    }
    @Test
    public void getPaymentById(){
        Payment paymentById = paymentDao.getPaymentById(1L);
        System.out.println(paymentById);
    }
}
